package com.sunwayhorizo.health.business.integration.model;

import java.io.*;
import java.sql.*;
import org.hibernate.validator.constraints.*;

public class PatientStatusInfo implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	/**
	 * 患者编码
	 */
	@NotEmpty
	@Length(max=200)
	private String nature_id;
	/**
	 * 住院次数
	 */
	@Length(max=10)
	private String encounter_num;
	/**
	 * 床位号
	 */
	@NotEmpty
	@Length(max=20)
	private String bed_no;
	/**
	 * 当前科室
	 */
	@Length(max=200)
	private String dept;
	/**
	 * 状态
	 */
	@Length(max=1)
	private String action;
	/**
	 * 状态变化时间
	 */
	private Timestamp action_time;
	/**
	 * 操作员信息
	 */
	@Length(max=200)
	private String operator_by;
	
	/**
	 * 来源科室
	 */
	
	private String from_dept;
	
	
	/**
	 * 住院号
	 */
	@NotEmpty
	@Length(max=100)
	private String hospitalzation_no;
	
	/**
     * 接诊医生
     */
    @NotEmpty
    @Length(max=100)
    private String doctor;
	
	
	/**
	 * 医嘱信息
	 */
//	@Length(max=50)
//	private String order_time;

	public PatientStatusInfo() {
		super();
	}

	public PatientStatusInfo(String doNotUse) {
		super();
		 
		this.nature_id = "130114";
		this.encounter_num = "22";
		this.bed_no = "1";
		//this.dept = "1010100|呼吸科";
		this.dept = "1230100|呼吸科";
		this.action = "1";
		this.action_time =new Timestamp(23213213123l);
		this.operator_by = "12345|鹿翠香";
		this.hospitalzation_no = "11049264";
	//	this.order_time = "19270318111111";
	}

	public PatientStatusInfo(String nature_id, String encounter_num,
			String bed_no, String dept, String action, Timestamp action_time,
			String operator_by, String hospitalzation_no, String order_time) {
		super();
		this.nature_id = nature_id;
		this.encounter_num = encounter_num;
		this.bed_no = bed_no;
		this.dept = dept;
		this.action = action;
		this.action_time = action_time;
		this.operator_by = operator_by;
		this.hospitalzation_no = hospitalzation_no;
	//	this.order_time = order_time;
	}

	@Override
	public String toString() {
		return "PatientStatusInfo [\n患者编码=" + nature_id
				+ ",\n 住院次数=" + encounter_num + ",\n 床位号=" + bed_no
				+ ",\n 科室=" + dept + ",\n 状态=" + action
				+ ",\n 状态变化时间=" + action_time + ",\n 操作员信息="
				+ operator_by + ",\n 住院号=" + hospitalzation_no
				//+ ",\n 医嘱信息=" + order_time 
				+ "]";
	}

	public String getNature_id() {
		return nature_id;
	}

	public void setNature_id(String nature_id) {
		this.nature_id = nature_id;
	}

	public String getEncounter_num() {
		return encounter_num;
	}

	public void setEncounter_num(String encounter_num) {
		this.encounter_num = encounter_num;
	}

	public String getBed_no() {
		return bed_no;
	}

	public void setBed_no(String bed_no) {
		this.bed_no = bed_no;
	}

	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}


	public Timestamp getAction_time() {
		return action_time;
	}

	public void setAction_time(Timestamp action_time) {
		this.action_time = action_time;
	}

	public String getOperator_by() {
		return operator_by;
	}

	public void setOperator_by(String operator_by) {
		this.operator_by = operator_by;
	}

	public String getHospitalzation_no() {
		return hospitalzation_no;
	}

	public void setHospitalzation_no(String hospitalzation_no) {
		this.hospitalzation_no = hospitalzation_no;
	}

//	public String getOrder_time() {
//		return order_time;
//	}
//
//	public void setOrder_time(String order_time) {
//		this.order_time = order_time;
//	}



	public void setId(int id) {
		this.id = id;
	}



	public int getId() {
		return id;
	}

    public void setFrom_dept(String from_dept)
    {
        this.from_dept = from_dept;
    }

    public String getFrom_dept()
    {
        return from_dept;
    }

    public void setDoctor(String doctor)
    {
        this.doctor = doctor;
    }

    public String getDoctor()
    {
        return doctor;
    }

}
